package com.jf.yytgd.entity.dto.combined;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Created with IntelliJ IDEA
 * Description: 日记条DTO(包含用户基础信息)
 * User:22954
 * Date:2025-02-06
 * Time:21:32
 */
@Data
public class DiaryUserBarDTO {
    private Integer diaryId;
    private String title;
    private Integer userId;
    private String nickname;
    private String portraitPath;
    @JsonFormat(pattern = "YYYY.M.D")
    private LocalDateTime publishAt;
    private Integer likes;
    private Integer views;
    private Integer comments;
}
